package org.csu.pet_store_back.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("orders")
public class Order {
    @NotBlank
    @TableField("orderid")
    private String orderId;

    @NotBlank
    @TableField("userid")
    private String userid;

    @NotBlank
    @TableField("shopperid")
    private String shopperId;

    @TableField("orderdate")
    private Date orderDate;

    @TableField("sendDate")
    private String sendDate;

    @TableField("shipaddress")
    private String shipAddress;

    @TableField("shipcity")
    private String shipCity;

    @TableField("shipzip")
    private String shipZip;

    @TableField("billaddress")
    private String billAddress;

    @TableField("billcity")
    private String billCity;

    @TableField("billzip")
    private String billZip;

    @TableField("courier")
    private String courier;

    @TableField("listprice")
    private String listPrice;

    @TableField("quantity")
    private String quantity;

    @TableField("totalprice")
    private BigDecimal totalPrice;

    @TableField("status")
    private String status;

    @TableField("description")
    private String description;
}
